{extend name="base:base" /}
{block name="body"}

<link href="__THEME__/css/index.css" rel="stylesheet" type="text/css" />
<script src="__THEME__/js/jquery.SuperSlide.2.1.1.js"></script>
<!-- pc轮播图开始-->
<div id="slideBox" class="slideBox1">
    <div class="hd">
        <ul></ul>
    </div>
    <div class="bd">
        <ul>

            <?php
            $banners = helper_nav_alias('banner');
            foreach ($banners as $key => $value) {
                ?>
                <li><a href="<?php echo my_url($value['href']); ?>"><img src="<?php echo res_http($value['image']); ?>"  alt="banner" ></a></li>
            <?php } ?>

        </ul>
    </div>
    <a class="prev" href="javascript:void(0)"></a>
    <a class="next" href="javascript:void(0)"></a>
</div>
<!-- pc轮播图结束 -->


<!-- 手机版轮播图开始 -->
<div id="focus" class="focus">
    <div class="hd">
        <ul></ul>
    </div>
    <div class="bd">
        <ul>

            <?php
            foreach ($banners as $key => $value) {
                ?>
                <li><a href="<?php echo my_url($value['href']); ?>"><img src="<?php echo res_http($value['image']); ?>"  alt="banner" ></a></li>
            <?php } ?>


        </ul>
    </div>
</div>
<script src="__THEME__/js/TouchSlide.1.1.js"></script>
<!-- pc轮播图结束 -->

<!-- 轮播图结束 -->


<div class="search">
    <div class="wrap clearfix">
        <div class="leftkeywords fl" >大家都在搜：<a href="javascript:;">北京</a>|<a href="javascript:;">上海</a> | <a href="javascript:;">广州</a> </div>
        <div class="search-form fr">
            <form name="formsearch" action="#">
                <input name="keywords" class="keywords" placeholder="请输入关键字搜索" maxlength="20" type="text" />
                <input name="submit" value="" class="search_btn abs" type="submit" />
            </form>
        </div>
    </div>
</div>

<!-- 媒体中心 -->
<div class="news">
    <div class="wrap clearfix">
        <div>
            <h1>媒体中心</h1>
        </div>
        <div class="news-content clearfix">
            <div class="news-left fl slideTxtBox">
                <div class="switch-bar hd"> 
                    <ul id="move-animate-left clearfix">
                        <li>
                            <a href="javascript:;">国内</a>
                        </li>
                        <li>
                            <a href="javascript:;">国外</a>
                        </li>

                    </ul>
                </div>
                <div class="tabcon " id="leftcon">
                    <div class="subbox clearfix bd" >

                        <ul class="sublist">
                            <?php
                            foreach (helper_article_path('0-11-14', 'field:id,title,create_time;limit:8;order:id desc;') as $key => $value) {
                                ?>
                                <li><a href="<?php echo my_url('index/index/views_article?id=' . $value['id']) ?>"><span><?php echo $value['title']; ?></span></a><em><?php echo date('Y/m/d', $value['create_time']); ?></em></li>
                            <?php } ?>

                        </ul>

                        <ul class="sublist">
                            <?php
                            foreach (helper_article_path('0-11-15', 'field:id,title,create_time;limit:8;order:id desc;') as $key => $value) {
                                ?>
                                <li><a href="<?php echo my_url('index/index/views_article?id=' . $value['id']) ?>"><span><?php echo $value['title']; ?></span></a><em><?php echo date('Y/m/d', $value['create_time']); ?></em></li>
                            <?php } ?>

                        </ul>



                    </div>
                </div>
            </div>
            <div class="news-right fr">
                <div class="pictureContainer slideImgBox" id="pictureContainer">
                    <div class="sildeimg bd">
                        <ul class="slideshow" id="slidesImgs">

                            <?php
                            $image_news = helper_article_path('0-11-14', 'limit: 5;');
                            foreach ($image_news as $key => $value) {
                                ?>

                                <li><a href="javascript:;"><img src="<?php echo res_http($value['image']); ?>" alt="" width="100%" border="0"></a><span><a href="<?php echo my_url('index/index/views_aritcle?id=' . $value['id']); ?>"><?php echo $value['title']; ?></a></span></li>
                            <?php } ?>

                        </ul>

                    </div>

                    <div class="slidebar " id="slideBar">
                        <ul class="hd clearfix">

                            <?php
                            foreach ($image_news as $key => $value) {
                                echo ' <li></li>';
                            }
                            ?>

                        </ul>
                    </div>

                    <a class="more" href="javascript:;" title="更多视频"></a>
                </div>
            </div>
        </div>

    </div>
</div>
<div class="case">
    <div class="wrap clearfix">
        <div class="project fl"><a href="javascript:;"><img src="__THEME__/images/project_h.jpg" style="max-width: 100%" alt="" /></a></div>
        <div class="cooper fr"><a href="javascript:;"><img src="__THEME__/images/coop_h.jpg" style="max-width: 100%" alt="" /></a></div>
    </div>
</div>
<script src="__THEME__/js/index.js"></script>


{/block}
{block name="foot_js"}

{/block}